package com.strival.bal.exception;

/**
 * Author:zhangyu
 * create on 15/9/9.
 */
public class BizException extends Exception {

    /**用户名重复*/
    public final static Integer ERROR_CODE_USERNAME_EXISTED=new Integer(2000);
    /**用户不存在*/
    public final static Integer ERROR_CODE_USER_NOT_FOUND=new Integer(2001);
    /**用户密码错误*/
    public final static Integer ERROR_CODE_PASSWORD_ERROR=new Integer(2002);

    private Integer errorCode;

    public BizException(Integer errorCode,String errMsg){
        super(errMsg);
        this.errorCode=errorCode;
    }

    public Integer getErrorCode() {
        return this.errorCode;
    }
}
